<%-- $Id: displayMatching.jsp 92378 2011-04-27 23:26:16Z ktsao@stanford.edu $
include file for displaying matching questions
--%>
<!--
<%--
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. 
*
**********************************************************************************/
--%>
-->

<h:outputText value="#{question.text}"  escape="false"/>
<h:dataTable value="#{question.itemTextArraySorted}" var="itemText">
 <h:column>
   <h:outputText value="#{itemText.sequence}#{evaluationMessages.dot} #{itemText.text}" escape="false" />
   <h:dataTable value="#{itemText.answerArraySorted}" var="answer">
     <h:column>
      <h:graphicImage alt="#{evaluationMessages.alt_correct}" id="image4" rendered="#{answer.isCorrect}"
        url="/images/delivery/checkmark.gif" >
       </h:graphicImage>
      <h:graphicImage id="image5" rendered="#{!answer.isCorrect}"
        alt=" " url="/images/crossmark.gif" >
       </h:graphicImage>
     </h:column>
     <h:column>
       <h:outputText value="#{answer.text}" escape="false" />
     </h:column>
   </h:dataTable>
 </h:column>
</h:dataTable>

